# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-genesis-plus-gx
pkgver=0_git20200208
pkgrel=0
_commit="50551066f71f8a5ea782ea3747891fd6d24ebe67"
pkgdesc="an enhanced port of Genesis Plus"
url="https://github.com/libretro/Genesis-Plus-GX"
arch="all"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Genesis-Plus-GX/archive/$_commit.tar.gz"
builddir="$srcdir/Genesis-Plus-GX-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 genesis_plus_gx_libretro.so "$pkgdir"/usr/lib/libretro/genesis_plus_gx_libretro.so
}

sha512sums="bc5f0b0b4f6c5077fa90bb18e78f79baa08e6253eadce13b1ca0d884c54d2c2669b53e856feb05f2293a4b642707773df155a4393a8a64db766f805a2b71d63a  libretro-genesis-plus-gx-50551066f71f8a5ea782ea3747891fd6d24ebe67.tar.gz"
